package com.spring.component.utils;

import java.lang.management.ManagementFactory;

/**
 * @author liushihua
 * @since 2018年03月21日
 */
public class JvmUtil {

  public static long getJvmStartTime() {
    return ManagementFactory.getRuntimeMXBean().getStartTime();
  }

  public static long getJvmUpdateTime() {
    return ManagementFactory.getRuntimeMXBean().getUptime();
  }
}
